﻿<UserControl x:Class="SLHello.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <!-- Changed Code -->
    <StackPanel x:Name="LayoutRoot" Background="White">
        <TextBlock x:Name="MyMessage"
                   HorizontalAlignment="Center"
                   Margin="0,20,0,20"
                   Text="Hello ...."/>
        <Button x:Name="MyButton" 
                Width="200"
                Margin="0,20,0,20"
                HorizontalAlignment="Center"
                Click="MyButton_Click">
            Press Me
        </Button>      
    </StackPanel>
       
</UserControl>
